package com.leonzhangxf;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author leonzhangxf
 * @date 20190630
 */
@SpringBootApplication
@RestController
public class SpringSecurityApplication {

    public static void main(String[] args) {
        new SpringApplicationBuilder(SpringSecurityApplication.class).run(args);
    }

    @GetMapping("ping")
    public String ping() {
        return "pong";
    }
}
